//
//  GMFShapeView.h
//  SplunkMobile
//
//  Created by lijunying on 1/21/2016.
//  Copyright © 2016 Gome. All rights reserved.
//

#import <UIKit/UIKit.h>
@class GMFShapeView;
@class GMFShapeButton;

@protocol ShapeViewDelegate <NSObject>

/**
 *  @brief 代理方法
 *
 *  @param shapeView 本view
 *  @param string    把按钮tag
 */
- (void)shapeView:(GMFShapeView *)shapeView buttonTagString:(NSString *)string;

/**
 *  @brief 代理方法
 *
 *  @param shapeView 本view
 *  @param value     滑块的值
 */
- (void)shapeView:(GMFShapeView *)shapeView sliderValue:(float)value;

@end

@interface GMFShapeView : UIView

@property (nonatomic, weak) GMFShapeButton *btnLine;
@property (nonatomic, weak) GMFShapeButton *btnPen;
@property (nonatomic, weak) GMFShapeButton *btnRectangle;
@property (nonatomic, weak) GMFShapeButton *btnEllipse;

@property (nonatomic, assign) BOOL isShapeViewShow;

@property(nonatomic, weak) id<ShapeViewDelegate> delegate;

@end
